From: Florian Müllner Date: Fri, 19 May 2023 17:02:08 +0000 (+0200) Subject: backgroundApps: Allow activating apps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~337^2~2^2~51 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=dec26b7da2ee61641eac8909d0fc2a9f8985216d;p=gnome-shell.git backgroundApps: Allow activating apps Now that we track apps instead of instances, we can make the menu items activatable, because the corresponding action is no longer app specific (like activating a particular tab): We can simply activate the app, which hopefully will bring it to the foreground again. Part-of: --- diff --git a/js/ui/status/backgroundApps.js b/js/ui/status/backgroundApps.js index 6fd22ea1e..f2bee8884 100644 --- a/js/ui/status/backgroundApps.js +++ b/js/ui/status/backgroundApps.js @@ -34,8 +34,6 @@ var BackgroundAppMenuItem = GObject.registerClass({ delete params.message; super._init(app.get_name(), app.get_icon(), { - activate: false, - reactive: false, ...params, }); @@ -93,6 +91,8 @@ var BackgroundAppMenuItem = GObject.registerClass({ closeButton.connect('clicked', () => this._quitApp().catch(logError)); + this.connect('activate', () => this.app.activate()); + this.connect('destroy', () => this._onDestroy()); }